		<center>
		<SCRIPT>  
			var d = new Date();  
			document.write(d.getFullYear() + "年" +(d.getMonth() + 1) + "月" + d.getDate() + "日");  
			document.write(' 星期'+'日一二三四五六'.charAt(new Date().getDay())); 
		</SCRIPT> 
<?php		
		//六脉神剑	
			$sex = array("1"=>"男","2"=>"女");
			include("dbconfig.php");
			$link = @mysqli_connect(HOST,USER,PASS,DBNAME) or die("数据库连接失败");
			mysqli_set_charset($link,"utf8");
			
			$sql = "select * from users where id={$_SESSION['id']}";
			$result = mysqli_query($link,$sql);
		?>
			<table border="1px solid #cccccc" width="1000px">
				<form action="./index.php" method="POST">
				<tr>
					<td>个人信息 UCENTER </td>
					<th colspan='10'></th>
				</tr>
				<tr>
					<td>会员ID</td>
					<td>用户名</td>
					<td>真实姓名</td>
					<td>密码</td>
					<td>性别</td>
					<td>地址</td>
					<td>邮编</td>
					<td>电话</td>
					<td>邮箱</td>
					<td>添加时间</td>
					<td>操作</td>
				</tr>
				<!---------这里用WHILE,echo将SESSION中的users信息导出-------------->
				<?php	
				$sql = "select * from users where id=12";
			$result = mysqli_query($link,$sql);
			while($row = mysqli_fetch_assoc($result)){				
				echo "<tr>";
				echo "<td align=center>{$row['id']}</td>";
				echo "<td align=center>{$row['username']}</td>";
				echo "<td align=center>{$row['name']}</td>";
				echo "<td align=center>{$row['pass']}</td>";
				echo "<td align=center>{$sex{$row['sex']}}</td>";
				echo "<td align=center>{$row['address']}</td>";
				echo "<td align=center>{$row['code']}</td>";
				echo "<td align=center>{$row['phone']}</td>";
				echo "<td align=center>{$row['email']}</td>";
				echo "<td align=center>".date('Y-m-d H:i:s',$row['addtime'])."</td>";
				echo "<td align=center><a href='edit.php?id={$row['id']}'>修改</a>";  
			}
?>
		</center>